#ifndef LUASQLPROXY_H
#define LUASQLPROXY_H
#include <QtLua/Function>
#include <QSqlQuery>

class LuaSqlExec : public QtLua::Function
{
public:
    LuaSqlExec(QSqlQuery *sql);

    QtLua::Value::List meta_call(QtLua::State &ls, const QtLua::Value::List &args);

private:
    QSqlQuery *m_sql;
};

class LuaSqlNext : public QtLua::Function
{
public:
    LuaSqlNext(QSqlQuery *sql);

    QtLua::Value::List meta_call(QtLua::State &ls, const QtLua::Value::List &args);

private:
    QSqlQuery *m_sql;
};

class LuaSqlValue : public QtLua::Function
{
public:
    LuaSqlValue(QSqlQuery *sql);

    QtLua::Value::List meta_call(QtLua::State &ls, const QtLua::Value::List &args);

private:
    QSqlQuery *m_sql;
};
#endif // LUASQLPROXY_H
